package com.tengju.user.infrastructure.repository.star;

import com.tengju.user.domain.model.star.DwsStarIndicatorStatRepository;
import com.tengju.user.domain.model.star.StarIndicator;
import com.tengju.user.domain.model.user.UserIdCode;
import com.tengju.user.infrastructure.persistence.mybatis.dataobject.StarIndicatorStatDO;
import com.tengju.user.infrastructure.persistence.mybatis.mapper.dealer.custom.DwsStarIndicatorStatMapper;
import com.tengju.user.infrastructure.repository.star.convert.StarIndicatorConvert;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;
import java.util.stream.Collectors;

@Repository
public class DwsStarIndicatorStatRepositoryImpl implements DwsStarIndicatorStatRepository {

    @Resource
    private DwsStarIndicatorStatMapper dwsStarIndicatorStatMapper;

//    @Override
//    public List<StarIndicator> getByIdCode(UserIdCode idCode) {
//
//        List<StarIndicatorStatDO> starIndicatorStatDOList =
//                dwsStarIndicatorStatMapper.batchQueryByIdCode(idCode);
//
//        return starIndicatorStatDOList.stream()
//                .map(StarIndicatorConvert::convertToModel)
//                .collect(Collectors.toList());
//
//    }

}
